<?  // Namo WebEditor dbWizard Script.
    // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
    // Do not modify this block.

    // block_name  : 
    // block_type  : page header

    // target      : Windows, php, ODBC
    // page_type   : list grid
    // arg         : startrow, int, get, page
    // arg         : maxrows, int, get, page

    $a_startrow = $startrow;
    $a_maxrows = $maxrows;
    
    
    
    require('wed_php_odbc.inc');

    // checksum    : 57849
?><html>

<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Liste des Inscriptions par ordre alphabetique</title>
<meta name="generator" content="Namo WebEditor v6.0">
</head>

<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<p align="center"><b><font size="6" face="Arial">Liste des Inscriptions par ordre alphabetique</font></b></p>
<table cellpadding="0" cellspacing="0" width="780" align="center">
        <td width="-3" align="center" valign="middle" bordercolor="white">
            <form name="formAlphaA" target="_self" action="http://82.64.67.115/primaire/videgreniersoctobre2022/envoiprospa.php">
                <p align="center"><input type="submit" name="Lettre" value=" A " style="font-family:Arial; font-weight:bolder; font-size:15px; text-align:center; margin-top:3;"></p>
            </form>
        </td>
        <td width="50" align="center" valign="middle" bordercolor="white">
            <form name="formAlphB" target="_self" action="http://82.64.67.115/primaire/videgreniersoctobre2022/envoiprospb.php">
                <p align="center"><input type="submit" name="Lettre" value=" B " style="font-family:Arial; font-weight:bolder; font-size:15px; text-align:center; margin-top:3;"></p>
            </form>
        </td>
        <td width="23" align="center" valign="middle" bordercolor="white">
            <form name="formAlphaC" target="_self" action="http://82.64.67.115/primaire/videgreniersoctobre2022/envoiprospc.php">
                <p align="center"><input type="submit" name="Lettre" value=" C " style="font-family:Arial; font-weight:bolder; font-size:15px; text-align:center; margin-top:3;"></p>
            </form>
        </td>
        <td width="25" align="center" valign="middle" bordercolor="white">
            <form name="formAlphaD" target="_self" action="http://82.64.67.115/primaire/videgreniersoctobre2022/envoiprospd.php">
                <p align="center"><input type="submit" name="Lettre" value=" D " style="font-family:Arial; font-weight:bolder; font-size:15px; text-align:center; margin-top:3;"></p>
            </form>
        </td>
        <td width="23" align="center" valign="middle" bordercolor="white">
            <form name="formAlphaE" target="_self" action="http://82.64.67.115/primaire/videgreniersoctobre2022/envoiprospe.php">
                <p align="center"><input type="submit" name="Lettre" value=" E " style="font-family:Arial; font-weight:bolder; font-size:15px; text-align:center; margin-top:3;"></p>
            </form>
        </td>
        <td width="22" align="center" valign="middle" bordercolor="white">
            <form name="formAlphaF" target="_self" action="http://82.64.67.115/primaire/videgreniersoctobre2022/envoiprospf.php">
                <p align="center"><input type="submit" name="Lettre" value=" F " style="font-family:Arial; font-weight:bolder; font-size:15px; text-align:center; margin-top:3;"></p>
            </form>
        </td>
        <td width="25" align="center" valign="middle" bordercolor="white">
            <form name="formAlphaG" target="_self" action="http://82.64.67.115/primaire/videgreniersoctobre2022/envoiprospg.php">
                <p align="center"><input type="submit" name="Lettre" value=" G " style="font-family:Arial; font-weight:bolder; font-size:15px; text-align:center; margin-top:3;"></p>
            </form>
        </td>
        <td width="25" align="center" valign="middle" bordercolor="white">
            <form name="formAlphaH" target="_self" action="http://82.64.67.115/primaire/videgreniersoctobre2022/envoiprosph.php">
                <p align="center"><input type="submit" name="Lettre" value=" H " style="font-family:Arial; font-weight:bolder; font-size:15px; text-align:center; margin-top:3;"></p>
            </form>
        </td>

<td width="17" align="center" valign="middle" bordercolor="white">
            <form name="formAlphaI" target="_self" action="http://82.64.67.115/primaire/videgreniersoctobre2022/envoiprospi.php">
                <p align="center"><input type="submit" name="Lettre" value=" I " style="font-family:Arial; font-weight:bolder; font-size:15px; text-align:center; margin-top:3;"></p>
            </form>
</td>

<td width="20" align="center" valign="middle" bordercolor="white">
            <form name="formAlphaJ" target="_self" action="http://82.64.67.115/primaire/videgreniersoctobre2022/envoiprospj.php">
                <p align="center"><input type="submit" name="Lettre" value=" J " style="font-family:Arial; font-weight:bolder; font-size:15px; text-align:center; margin-top:3;"></p>
            </form>
</td>

<td width="23" align="center" valign="middle" bordercolor="white">
            <form name="formAlphaK" target="_self" action="http://82.64.67.115/primaire/videgreniersoctobre2022/envoiprospk.php">
                <p align="center"><input type="submit" name="Lettre" value=" K " style="font-family:Arial; font-weight:bolder; font-size:15px; text-align:center; margin-top:3;"></p>
            </form>
</td>

<td width="22" align="center" valign="middle" bordercolor="white">
            <form name="formAlphaL" target="_self" action="http://82.64.67.115/primaire/videgreniersoctobre2022/envoiprospl.php">
                <p align="center"><input type="submit" name="Lettre" value=" L " style="font-family:Arial; font-weight:bolder; font-size:15px; text-align:center; margin-top:3;"></p>
            </form>
</td>

<td width="26" align="center" valign="middle" bordercolor="white">
            <form name="formAlphaM" target="_self" action="http://82.64.67.115/primaire/videgreniersoctobre2022/envoiprospm.php">
                <p align="center"><input type="submit" name="Lettre" value=" M " style="font-family:Arial; font-weight:bolder; font-size:15px; text-align:center; margin-top:3;"></p>
            </form>
</td>

<td width="25" align="center" valign="middle" bordercolor="white">
            <form name="formAlphaN" target="_self" action="http://82.64.67.115/primaire/videgreniersoctobre2022/envoiprospn.php">
                <p align="center"><input type="submit" name="Lettre" value=" N " style="font-family:Arial; font-weight:bolder; font-size:15px; text-align:center; margin-top:3;"></p>
            </form>
</td>

<td width="25" align="center" valign="middle" bordercolor="white">
            <form name="formAlphaO" target="_self" action="http://82.64.67.115/primaire/videgreniersoctobre2022/envoiprospo.php">
                <p align="center"><input type="submit" name="Lettre" value=" O " style="font-family:Arial; font-weight:bolder; font-size:15px; text-align:center; margin-top:3;"></p>
            </form>
</td>

<td width="23" align="center" valign="middle" bordercolor="white">
            <form name="formAlphaP" target="_self" action="http://82.64.67.115/primaire/videgreniersoctobre2022/envoiprospp.php">
                <p align="center"><input type="submit" name="Lettre" value=" P " style="font-family:Arial; font-weight:bolder; font-size:15px; text-align:center; margin-top:3;"></p>
            </form>
</td>

<td width="25" align="center" valign="middle" bordercolor="white">
            <form name="formAlphaQ" target="_self" action="http://82.64.67.115/primaire/videgreniersoctobre2022/envoiprospq.php">
                <p align="center"><input type="submit" name="Lettre" value=" Q " style="font-family:Arial; font-weight:bolder; font-size:15px; text-align:center; margin-top:3;"></p>
            </form>
</td>

<td width="25" align="center" valign="middle" bordercolor="white">
            <form name="formAlphaR" target="_self" action="http://82.64.67.115/primaire/videgreniersoctobre2022/envoiprospr.php">
                <p align="center"><input type="submit" name="Lettre" value=" R " style="font-family:Arial; font-weight:bolder; font-size:15px; text-align:center; margin-top:3;"></p>
            </form>
</td>

<td width="23" align="center" valign="middle" bordercolor="white">
            <form name="formAlphaS" target="_self" action="http://82.64.67.115/primaire/videgreniersoctobre2022/envoiprosps.php">
                <p align="center"><input type="submit" name="Lettre" value=" S " style="font-family:Arial; font-weight:bolder; font-size:15px; text-align:center; margin-top:3;"></p>
            </form>
</td>

<td width="23" align="center" valign="middle" bordercolor="white">
            <form name="formAlphaT" target="_self" action="http://82.64.67.115/primaire/videgreniersoctobre2022/envoiprospt.php">
                <p align="center"><input type="submit" name="Lettre" value=" T " style="font-family:Arial; font-weight:bolder; font-size:15px; text-align:center; margin-top:3;"></p>
            </form>
</td>

<td width="25" align="center" valign="middle" bordercolor="white">
            <form name="formAlphaU" target="_self" action="http://82.64.67.115/primaire/videgreniersoctobre2022/envoiprospu.php">
                <p align="center"><input type="submit" name="Lettre" value=" U " style="font-family:Arial; font-weight:bolder; font-size:15px; text-align:center; margin-top:3;"></p>
            </form>
</td>

<td width="23" align="center" valign="middle" bordercolor="white">
            <form name="formAlphaV" target="_self" action="http://82.64.67.115/primaire/videgreniersoctobre2022/envoiprospv.php">
                <p align="center"><input type="submit" name="Lettre" value=" V " style="font-family:Arial; font-weight:bolder; font-size:15px; text-align:center; margin-top:3;"></p>
            </form>
</td>

<td width="29" align="center" valign="middle" bordercolor="white">
            <form name="formAlphaW" target="_self" action="http://82.64.67.115/primaire/videgreniersoctobre2022/envoiprospw.php">
                <p align="center"><input type="submit" name="Lettre" value=" W " style="font-family:Arial; font-weight:bolder; font-size:15px; text-align:center; margin-top:3;"></p>
            </form>
</td>

<td width="23" align="center" valign="middle" bordercolor="white">
            <form name="formAlphaX" target="_self" action="http://82.64.67.115/primaire/videgreniersoctobre2022/envoiprospx.php">
                <p align="center"><input type="submit" name="Lettre" value=" X " style="font-family:Arial; font-weight:bolder; font-size:15px; text-align:center; margin-top:3;"></p>
            </form>
</td>

<td width="23" align="center" valign="middle" bordercolor="white">
            <form name="formAlphaY" target="_self" action="http://82.64.67.115/primaire/videgreniersoctobre2022/envoiprospy.php">
                <p align="center"><input type="submit" name="Lettre" value=" Y " style="font-family:Arial; font-weight:bolder; font-size:15px; text-align:center; margin-top:3;"></p>
            </form>
</td>

<td width="23" align="center" valign="middle" bordercolor="white">
            <form name="formAlphaZ" target="_self" action="http://82.64.67.115/primaire/videgreniersoctobre2022/envoiprospz.php">
                <p align="center"><input type="submit" name="Lettre" value=" Z " style="font-family:Arial; font-weight:bolder; font-size:15px; text-align:center; margin-top:3;"></p>
            </form>
</td>

    </tr>
</table>
<?  // Namo WebEditor dbWizard Script.
    // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
    // Do not modify this block.

    // block_name  : Bloc de table
    // block_type  : list grid

    // server      : Vgreniers
    // userid      : 
    // passwd      : 
    // table       : inscriptions
    // table       : paiment_recu
    // table       : PieceIdentite
    // table       : reglement
    // table       : non_oui
    // table       : non_oui2
    // join_cond   : paiment_recu.Num = inscriptions.PaiementRecuN AND PieceIdentite.Num = inscriptions.IdentitePieceN AND reglement.Num = inscriptions.ReglementN AND non_oui.num = inscriptions.mailconfirm AND non_oui2.num = inscriptions.mailpaiement
    // order_cond  : inscriptions.NomFamille
    // field       : inscriptions.NomFamille, string, null, 50
    // field       : inscriptions.Prenom, string, null, 50
    // field       : inscriptions.Ville, string, null, 50
    // field       : inscriptions.TelPersonnel, string, null, 30
    // field       : inscriptions.TelephoneMobile, string, null, 30
    // field       : inscriptions.AdresseCourrierElec, string, null, 50
    // field       : inscriptions.IdentiteNum, string, null, 50
    // field       : inscriptions.IdentiteDate, string, null, 50
    // field       : inscriptions.IdentiteVille, string, null, 50
    // field       : inscriptions.PaiementRecu, string, null, 50
    // field       : inscriptions.somme, string, null, 50
    // field       : inscriptions.NumInscriptions, int, not null, 0
    // field       : inscriptions.date, date, null, 0
    // field       : inscriptions.NumIp, string, null, 50
    // field       : inscriptions.identifiant, string, null, 15
    // field       : paiment_recu.Num, int, not null, 0
    // field       : paiment_recu.paiementrecu, string, null, 50
    // field       : PieceIdentite.Num, int, not null, 0
    // field       : PieceIdentite.PieceIdentite, string, null, 50
    // field       : reglement.Num, int, not null, 0
    // field       : reglement.reglement, string, null, 50
    // field       : inscriptions.IdentitePieceN, int, null, 0
    // field       : inscriptions.ReglementN, int, null, 0
    // field       : inscriptions.PaiementRecuN, int, null, 0
    // field       : non_oui.num, int, not null, 0
    // field       : non_oui.libelle, string, null, 50
    // field       : inscriptions.mailconfirm, int, null, 0
    // field       : non_oui2.num, int, not null, 0
    // field       : non_oui2.libelle, string, null, 50
    // field       : inscriptions.mailpaiement, int, null, 0
    // field       : inscriptions.enplacementsanciens, string, null, 50
    // disp_rows   : 500

    $w_disprows = 500;
    
    $w_sqlstr = "SELECT inscriptions.NomFamille, inscriptions.Prenom, inscriptions.Ville, inscriptions.TelPersonnel, inscriptions.TelephoneMobile, inscriptions.AdresseCourrierElec, inscriptions.IdentiteNum, inscriptions.IdentiteDate, inscriptions.IdentiteVille, inscriptions.PaiementRecu, inscriptions.somme, inscriptions.NumInscriptions, inscriptions.date, inscriptions.NumIp, inscriptions.identifiant, paiment_recu.Num, paiment_recu.paiementrecu, PieceIdentite.Num, PieceIdentite.PieceIdentite, reglement.Num, reglement.reglement, inscriptions.IdentitePieceN, inscriptions.ReglementN, inscriptions.PaiementRecuN, non_oui.num, non_oui.libelle, inscriptions.mailconfirm, non_oui2.num, non_oui2.libelle, inscriptions.mailpaiement, inscriptions.enplacementsanciens,  inscriptions.prospect FROM inscriptions, paiment_recu, PieceIdentite, reglement, non_oui, non_oui2 WHERE (inscriptions.NomFamille like 'y%' AND inscriptions.prospect=1 AND paiment_recu.Num = inscriptions.PaiementRecuN AND PieceIdentite.Num = inscriptions.IdentitePieceN AND reglement.Num = inscriptions.ReglementN AND non_oui.num = inscriptions.mailconfirm AND non_oui2.num = inscriptions.mailpaiement) ORDER BY inscriptions.NomFamille";
    wed_read_list_process ("VGreniersAsparel", "", "", $w_sqlstr, $w_record, $w_disprows, $a_startrow, $a_maxrows, $w_rows);

    // checksum    : 42549
?><table border="1" width="2928">
    <tr>
        <td width="107">&nbsp;</td>
        <td width="87">&nbsp;</td>
        <td width="237" colspan="2">
            <p align="center">confirmation envoyée&nbsp;: Inscrit/paiement</p>
        </td>
        <td width="211">
            <p align="center"><b>NomFamille</b></p>
        </td>
        <td width="152">
            <p align="center">Prenom</p>
        </td>
        <td width="172">
Emplacements anciens        </td>
        <td width="79">
&nbsp;        </td>
        <td width="169">
&nbsp;        </td>
        <td width="90">
&nbsp;        </td>
        <td width="94">
&nbsp;        </td>
        <td width="173">
&nbsp;        </td>
        <td width="175">
&nbsp;        </td>
        <td width="111">
&nbsp;        </td>
        <td width="111">
&nbsp;        </td>
        <td width="217">
&nbsp;        </td>
        <td width="99">
&nbsp;        </td>
        <td width="105">
&nbsp;        </td>
        <td width="63">
&nbsp;        </td>
        <td width="69">
&nbsp;        </td>
        <td width="159">
&nbsp;        </td>
        <td width="118">
&nbsp;        </td>
    </tr>

<?  // Namo WebEditor dbWizard Script.
    // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
    // Do not modify this block.

    // block_name  : 
    // block_type  : list loop begin


    for ($w_i = 0; $w_i < $w_rows; $w_i++) {
    	$f_inscriptions_NomFamille = $w_record[$w_i][0];
    	$f_inscriptions_Prenom = $w_record[$w_i][1];
    	$f_inscriptions_Ville = $w_record[$w_i][2];
    	$f_inscriptions_TelPersonnel = $w_record[$w_i][3];
    	$f_inscriptions_TelephoneMobile = $w_record[$w_i][4];
    	$f_inscriptions_AdresseCourrierElec = $w_record[$w_i][5];
    	$f_inscriptions_IdentiteNum = $w_record[$w_i][6];
    	$f_inscriptions_IdentiteDate = $w_record[$w_i][7];
    	$f_inscriptions_IdentiteVille = $w_record[$w_i][8];
    	$f_inscriptions_PaiementRecu = $w_record[$w_i][9];
    	$f_inscriptions_somme = $w_record[$w_i][10];
    	$f_inscriptions_NumInscriptions = $w_record[$w_i][11];
    	$f_inscriptions_date = $w_record[$w_i][12];
    	$f_inscriptions_NumIp = $w_record[$w_i][13];
    	$f_inscriptions_identifiant = $w_record[$w_i][14];
    	$f_paiment_recu_Num = $w_record[$w_i][15];
    	$f_paiment_recu_paiementrecu = $w_record[$w_i][16];
    	$f_PieceIdentite_Num = $w_record[$w_i][17];
    	$f_PieceIdentite_PieceIdentite = $w_record[$w_i][18];
    	$f_reglement_Num = $w_record[$w_i][19];
    	$f_reglement_reglement = $w_record[$w_i][20];
    	$f_inscriptions_IdentitePieceN = $w_record[$w_i][21];
    	$f_inscriptions_ReglementN = $w_record[$w_i][22];
    	$f_inscriptions_PaiementRecuN = $w_record[$w_i][23];
    	$f_non_oui_num = $w_record[$w_i][24];
    	$f_non_oui_libelle = $w_record[$w_i][25];
    	$f_inscriptions_mailconfirm = $w_record[$w_i][26];
    	$f_non_oui2_num = $w_record[$w_i][27];
    	$f_non_oui2_libelle = $w_record[$w_i][28];
    	$f_inscriptions_mailpaiement = $w_record[$w_i][29];
    	$f_inscriptions_enplacementsanciens = $w_record[$w_i][30];

    // checksum    : 4688
?>    <tr>
        <td width="107" height="30">
&nbsp;		</td>
        <td width="87" height="30">
&nbsp;		</td>
        <td width="139" height="30">
		
 <?php
     //-----------------------------------------------
     //DECLARE LES VARIABLES
     //-----------------------------------------------

     	 $destinataire= $f_inscriptions_AdresseCourrierElec ;
     $email_expediteur='videgrenier@asparel.fr';
     $email_reply='videgrenier@asparel.fr';
	 $sujet='Vide greniers de Saint Lys du 9 octobre 2022';
	 $chaine=$f_inscriptions_identifiant ;
	 $NomFamille=$f_inscriptions_NomFamille ;
	 $Prenom=$f_inscriptions_Prenom ;
                   $paiement=$f_paiment_recu_paiementrecu ;
                   $somme=$f_inscriptions_somme ;
                   $reglement=$f_reglement_reglement ;
                   $ancien=$f_inscriptions_enplacementsanciens;
	 $url='http://82.64.67.115/primaire/videgreniersoctobre2022/inscriptionvg.php?Consultation=3DConsultation&chaine=3D'.$chaine;

if($paiement != "oui" )
     {
          $phrase_paiement = 'Pensez =C3=A0 imprimer votre fiche et nous la faire parvenir compl=C3=A8te et sign=C3=A9e avec votre r=C3=A8glement.';
          $type='Fiche';
     }
 else
     {
          $phrase_paiement = 'Nous avons re=C3=A7u votre paiement de '.$somme.' =E2=82=AC en '.$reglement.'.';
          $type='Paiement';
     }
     $message_texte='Vide greniers de Saint Lys du 9 octobre 2022=20



'.$Prenom.' '.$NomFamille.',

Votre identifiant de r=C3=A9servation : '.$chaine.'

De par votre fid=C3=A9lit=C3=A9 vous avez le privil=C3=A8ge =
d\'acc=C3=A9der =C3=A0 votre fiche d=C3=A9j=C3=A0 pr=C3=A9remplie :

Voici le lien vous permettant d\'acc=C3=A9der =C3=A0 votre fiche a copier coller dans votre navigateur :

'.$url.'

Vous pouvez completer ou modifier votre fiche d\'inscription et choisir =
votre ou vos emplacement(s).



'.$phrase_paiement.'
   
Merci de votre fidC3=A9litC3=A9, a bient=C3=B4t

Association de Parents
Asparel
05.61.76.85.15 - 06.40.21.53.48
'; 
     $message_html='
<HTML><HEAD>
<META content=3D"text/html; charset=3Dutf-8" http-equiv=3DContent-Type>
<META name=3DGENERATOR content=3D"MSHTML 8.00.6001.19298">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2 face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2 face=3DArial></FONT><BR></DIV>
<DIV align=3Dcenter><FONT size=3D4 face=3DArial><STRONG>Vide grenier de =
Saint Lys le=20
9 octobre 2022&nbsp;</STRONG></FONT></DIV>
<DIV align=3Dcenter><FONT size=3D4 =
face=3DArial><STRONG></STRONG></FONT>&nbsp;</DIV>

<DIV align=3Dcenter><FONT size=3D4 =
face=3DArial><STRONG></STRONG></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2 face=3DArial><STRONG>'.$Prenom.' '.$NomFamille.',</STRONG></FONT></DIV>
<DIV><FONT size=3D2 face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2 face=3DArial>Votre identifiant de r=C3=A9servation : =
<STRONG><FONT=20
size=3D4><FONT color=3D#ff0000>'.$chaine.'</FONT><FONT=20
face=3DArial></FONT></FONT></STRONG></FONT></DIV>
<DIV><FONT size=3D2 face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2 face=3DArial>De=20
par votre fid=C3=A9lit=C3=A9 vous avez le =
privil=C3=A8ge&nbsp;d\'acc=C3=A9der =C3=A0&nbsp;votre=20
fiche&nbsp;d=C3=A9j=C3=A0 pr=C3=A9remplie :</FONT></DIV>
<DIV align=3Dcenter><FONT size=3D4 =
face=3DArial><STRONG></STRONG></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2 face=3DArial><FONT size=3D2 face=3DArial>Voici le =
lien vous=20
permettant d\'acc=C3=A9der =C3=A0 votre fiche :</FONT></DIV>
<DIV>
<DIV><FONT size=3D2 face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff size=3DArial></U><A href=3D"'.$url.'">votre=20
fiche</A></U></FONT></DIV
<DIV><U><FONT color=3D#0000ff></FONT></U>&nbsp;</DIV></FONT></DIV>
<DIV><FONT size=3D2 face=3DArial>Vous pouvez completer ou modifier votre =
fiche=20
d\'inscription&nbsp;et choisir votre ou =
vos&nbsp;emplacement(s).</FONT></DIV>
<DIV><FONT size=3D2 face=3DArial></FONT>&nbsp;</DIV>

<DIV><FONT size=3D2 face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2 face=3DArial><STRONG></U>'.$phrase_paiement.'</STRONG></U></FONT></DIV>
<DIV><FONT size=3D2 face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2 face=3DArial>Merci de votre fid=C3=A9lit=C3=A9, a bient=C3=B4t</FONT></DIV>
<DIV><FONT size=3D2 face=3DArial></FONT>&nbsp;</DIV>
<DIV>Association de Parents<BR>Asparel<BR>05.61.76.85.15 - 06.40.21.53.48</DIV></BODY></HTML>
';
     //-----------------------------------------------
     //GENERE LA FRONTIERE DU MAIL ENTRE TEXTE ET HTML
     //-----------------------------------------------

     $frontiere = '-----=' . md5(uniqid(mt_rand()));

     //-----------------------------------------------
     //HEADERS DU MAIL
     //-----------------------------------------------

     $headers = 'From: "Asparel " <'.$email_expediteur.'>'."\n";
     $headers .= 'Return-Path: <'.$email_reply.'>'."\n";
     $headers .= 'MIME-Version: 1.0'."\n";
     $headers .= 'Content-Type: multipart/alternative; boundary="'.$frontiere.'"';

     //-----------------------------------------------
     //MESSAGE TEXTE
     //-----------------------------------------------
     $message = 'This is a multi-part message in MIME format.'."\n\n";

     $message .= '--'.$frontiere."\n";
     $message .= 'Content-Type: text/plain; charset="utf-8"'."\n";
     $message .= 'Content-Transfer-Encoding: quoted-printable'."\n\n";
     $message .= $message_texte."\n\n";

     //-----------------------------------------------
     //MESSAGE HTML
     //-----------------------------------------------
     $message .= '--'.$frontiere."\n";
     $message .= 'Content-Type: text/html; charset="utf-8"'."\n";
     $message .= 'Content-Transfer-Encoding: quoted-printable'."\n\n";
     $message .= $message_html."\n\n";
     $message .= '--'.$frontiere."\n";
     //-----------------------------------------------
     //PIECE JOINTE 1
     //----------------------------------------------- 
     $message .= 'Content-Type: application/pdf; name="reglement_vide_grenier.pdf"'."\n";
     $message .= 'Content-Transfer-Encoding: base64'."\n";
     $message .= 'Content-Disposition:attachement; filename="reglement_vide_grenier.pdf"'."\n\n";

     $message .= chunk_split(base64_encode(file_get_contents('reglement_vide_grenier.pdf')))."\n";
     $message .= '--'.$frontiere."\n";
    //-----------------------------------------------
     //PIECE JOINTE 2
     //----------------------------------------------- 
     $message .= 'Content-Type: image/jpeg;
	name="emplacements tm.jpg"'."\n";
     $message .= 'Content-Transfer-Encoding: base64'."\n";
     $message .= 'Content-Disposition:attachement; filename="emplacements tm.jpg"'."\n\n";

     $message .= chunk_split(base64_encode(file_get_contents('emplacements tm.jpg')))."\n";
     $message .= '--'.$frontiere."\n";
    //-----------------------------------------------
     //PIECE JOINTE 3
     //----------------------------------------------- 
     $message .= 'Content-Type: image/jpeg;
	name="organisation_generale.jpg"'."\n";
     $message .= 'Content-Transfer-Encoding: base64'."\n";
     $message .= 'Content-Disposition:attachement; filename="organisation_generale.jpg"'."\n\n";

     $message .= chunk_split(base64_encode(file_get_contents('organisation_generale.jpg')))."\n";
     $message .= '--'.$frontiere."\n";
     //-----------------------------------------------
     //PIECE JOINTE 4
     //----------------------------------------------- 
     $message .= 'Content-Type: application/pdf; name="deroulement.pdf"'."\n";
     $message .= 'Content-Transfer-Encoding: base64'."\n";
     $message .= 'Content-Disposition:attachement; filename="deroulement.pdf"'."\n\n";

     $message .= chunk_split(base64_encode(file_get_contents('deroulement.pdf')))."\n";

     $message .= chunk_split(base64_encode(file_get_contents('reglement_vide_grenier.pdf')))."\n"; 
     if($destinataire != "_" and mail($destinataire,$sujet,$message,$headers))
     {
          $sqlstr = "UPDATE inscriptions SET " . "prospect = 2  WHERE inscriptions.identifiant='$chaine'";
          $connect = odbc_connect("VGreniersAsparel", "", "");
          odbc_exec($connect, $sqlstr);
          odbc_close($connect);
          echo 'Le mail a été envoyé';
     }
     else
     {
          echo 'Le mail n\'a pu être envoyé';
     }
?> 
		</td>
        <td width="92" height="30">

            
            <p align="center"><?  // Namo WebEditor dbWizard Script.
                                  // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
                                  // Do not modify this block.

                                  // block_name  : Champ de sortie
                                  // block_type  : write

                                  // value       : <f,non_oui.libelle>
                                  // cache       : "write value"

                                  wed_write($f_non_oui_libelle);

                                  // checksum    : 32975
                              ?>/ <?  // Namo WebEditor dbWizard Script.
                                      // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
                                      // Do not modify this block.

                                      // block_name  : Champ de sortie
                                      // block_type  : write

                                      // value       : <f,non_oui2.libelle>
                                      // cache       : "write value"

                                      wed_write($f_non_oui2_libelle);

                                      // checksum    : 49847
                                  ?></p>
        </td>
        <td width="211" height="30">
            <p align="center"><b><?  // Namo WebEditor dbWizard Script.
                                     // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
                                     // Do not modify this block.

                                     // block_name  : Champ de sortie
                                     // block_type  : write

                                     // value       : <f,inscriptions.NomFamille>
                                     // cache       : "write value"

                                     wed_write($f_inscriptions_NomFamille);

                                     // checksum    : 25373
                                 ?></b></p>
        </td>
        <td width="152" height="30">
            <p align="center"><?  // Namo WebEditor dbWizard Script.
                                  // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
                                  // Do not modify this block.

                                  // block_name  : Champ de sortie
                                  // block_type  : write

                                  // value       : <f,inscriptions.Prenom>
                                  // cache       : "write value"

                                  wed_write($f_inscriptions_Prenom);

                                  // checksum    : 4552
                              ?></p>
        </td>
        <td width="172" height="30">
<?  // Namo WebEditor dbWizard Script.
    // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
    // Do not modify this block.

    // block_name  : Champ de sortie
    // block_type  : write

    // value       : <f,inscriptions.enplacementsanciens>
    // cache       : "write value"

    wed_write($f_inscriptions_enplacementsanciens);

    // checksum    : 49379
?></td>
        <td width="79" height="30">
&nbsp;        </td>
        <td width="169" height="30">
&nbsp;        </td>
        <td width="90" height="30">
&nbsp;        </td>
        <td width="94" height="30">
&nbsp;        </td>
        <td width="173" height="30">
&nbsp;        </td>
        <td width="175" height="30">
&nbsp;        </td>
        <td width="111" height="30">
&nbsp;        </td>
        <td width="111" height="30">
&nbsp;        </td>
        <td width="217" height="30">
&nbsp;        </td>
        <td width="99" height="30">
&nbsp;        </td>
        <td width="105" height="30">
&nbsp;        </td>
        <td width="63" height="30">
&nbsp;        </td>
        <td width="69" height="30">
&nbsp;        </td>
        <td width="159" height="30">
&nbsp;        </td>
        <td width="118" height="30">
&nbsp;        </td>
    </tr>
<?  // Namo WebEditor dbWizard Script.
    // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
    // Do not modify this block.

    // block_name  : 
    // block_type  : list loop end


    }

    // checksum    : 42643
?></table>
<p align="center">&nbsp;</p>


</body>

</html>
